import Layout from '@/views/layout/Layout'

export default {
  path: '/wms',
  component: Layout,
  alwaysShow: true,
  meta: { title: '', icon: 'fa-cogs', noCache: true },
  children: [
    {
      path: 'ordertype',
      component: () => import('@/views/wms/basicdata/ordertype'),
      name: 'ordertype',
      meta: { title: '单据类型管理', noCache: true, roles: [] },
    },

    {
      path: 'functionConfig',
      component: () => import('@/views/wms/basicdata/functionConfig'),
      name: 'functionConfig',
      meta: { title: 'PDA功能页配置', noCache: true, roles: [] },
    },
    {
      path: 'index',
      component: () => import('@/views/wms/rackShelf'),
      name: 'rackShelf',
      meta: {
        title: '料架管理',
        noCache: true,
      },
    },
    {
      path: 'matconf',
      component: () => import('@/views/wms/rackShelf/matConf'),
      name: 'rackMatConf',
      meta: {
        title: '料架物料配置',
        noCache: true,
      },
    },
    {
      path: 'erporder',
      component: () => import('@/views/wms/order/erporder'),
      name: 'erporder',
      meta: { title: 'ERP单据', noCache: true, roles: [] },
    },
    {
      path: 'warehouseOrder',
      component: () => import('@/views/wms/order/warehouseOrder'),
      name: 'warehouseOrder',
      meta: { title: '仓库单据', noCache: true, roles: [] },
    },
    {
      path: 'orderInfo',
      component: () => import('@/views/wms/order/orderInfo'),
      name: 'orderInfo',
      meta: { title: '单据详情', noCache: true, roles: [] },
    },
    {
      path: 'feishengchanruku',
      component: () => import('@/views/wms/inout/feishengchanruku'),
      name: 'feishengchanruku',
      meta: { title: '非生产材料入库', noCache: false, roles: [] },
    },
    {
      path: 'feishengchanchuku',
      component: () => import('@/views/wms/inout/feishengchanchuku'),
      name: 'feishengchanchuku',
      meta: { title: '非生产材料出库', noCache: true, roles: [] },
    },
    {
      path: 'wInventory',
      component: () => import('@/views/wms/report/wInventory'),
      name: 'wInventory',
      meta: { title: '物料库存报表', noCache: false, roles: [] },
    },
    {
      path: 'sys_wInventory',
      component: () => import('@/views/wms/report/sys_wInventory'),
      name: 'sys_wInventory',
      meta: { title: '物料库存报表', noCache: false, roles: [] },
    },
    {
      path: 'wInventoryModify',
      component: () => import('@/views/wms/report/wInventoryModify'),
      name: 'wInventoryModify',
      meta: { title: '库存调整', noCache: false, roles: [] },
    },
    {
      path: 'wInventoryDetail',
      component: () => import('@/views/wms/report/wInventoryDetail'),
      name: 'wInventoryDetail',
      meta: { title: '物料库存明细表', noCache: false, roles: [] },
    },
    {
      path: 'snDetail',
      component: () => import('@/views/wms/report/snDetail'),
      name: 'snDetail',
      meta: { title: '条码明细表', noCache: false, roles: [] },
    },
    {
      path: 'wInventoryLog',
      component: () => import('@/views/wms/report/wInventoryLog'),
      name: 'wInventoryLog',
      meta: { title: '库存异动日志', noCache: false, roles: [] },
    },
    {
      path: 'stocktaking',
      component: () => import('@/views/wms/stocktaking/stocktaking'),
      name: 'stocktaking',
      meta: { title: '盘点单', noCache: false, roles: [] },
    },
    {
      path: 'stocktakingDiffrence/:id',
      component: () => import('@/views/wms/stocktaking/stocktakingDiffrence'),
      name: 'stocktakingDiffrence',
      meta: { title: '盘点单明细', noCache: true, roles: [] },
    },
  ],
}
